package com.huatai.saas.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.huatai.common.api.R;
import com.huatai.common.controller.BaseController;
import com.huatai.saas.enums.OrderStatusEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Validated
@Slf4j
@Api(value = "工单状态管理", tags = "工单状态管理")
@RequestMapping("/status")
public class OrderStatusController extends BaseController {

	@GetMapping("/list")
	@ApiOperationSupport(order = 1)
	@ApiOperation(value = "查询工单状态列表", notes = "查询工单状态列表")
	public R getStatusList(){
		return R.data(OrderStatusEnum.values());
	}
}
